package net.borlis.server.filesystem.common;

import com.mongodb.util.JSON;

import java.io.Serializable;
import java.math.BigInteger;
import java.util.concurrent.ConcurrentHashMap;

/**
 * Created by borlis on 26.12.2014.
 */
public class SessionJsonEntry implements Serializable {

    private String sessionKey;
    private BigInteger userid;
    private ConcurrentHashMap<String, Object> requestParams;
    private JSON response;
    private Long timeProcessed;
    private Boolean sessionValid;

    public SessionJsonEntry(
            String sessionKey, BigInteger userid, ConcurrentHashMap<String, Object> requestParams,
            JSON response, Long timeProcessed, Boolean sessionValid) {
        this.sessionKey = sessionKey;
        this.userid = userid;
        this.requestParams = requestParams;
        this.response = response;
        this.timeProcessed = timeProcessed;
        this.sessionValid = sessionValid;
    }

    public String getSessionKey() {
        return sessionKey;
    }

    public void setSessionKey(String sessionKey) {
        this.sessionKey = sessionKey;
    }

    public BigInteger getUserid() {
        return userid;
    }

    public void setUserid(BigInteger userid) {
        this.userid = userid;
    }

    public ConcurrentHashMap<String, Object> getRequestParams() {
        return requestParams;
    }

    public void setRequestParams(ConcurrentHashMap<String, Object> requestParams) {
        this.requestParams = requestParams;
    }

    public JSON getResponse() {
        return response;
    }

    public void setResponse(JSON response) {
        this.response = response;
    }

    public Long getTimeProcessed() {
        return timeProcessed;
    }

    public void setTimeProcessed(Long timeProcessed) {
        this.timeProcessed = timeProcessed;
    }

    public Boolean getSessionValid() {
        return sessionValid;
    }

    public void setSessionValid(Boolean sessionValid) {
        this.sessionValid = sessionValid;
    }
}
